import const

setattr(const, 'MY_CONSTANT', 1)
setattr(const, 'MY_SECOND_CONSTANT', 2)
setattr(const, 'MY_THIRD_CONSTANT', 3)

# const.MY_CONSTANT = 1
# const.MY_SECOND_CONSTANT = 2
# const.MY_THIRD_CONSTANT = 3

Constant = const